//
//  ViewController.m
//  TestFramework
//
//  Created by 7yao.top on 2018/11/2.
//  Copyright © 2018年 7yao.top. All rights reserved.
//

#import "ViewController.h"
#import "Kratos_Platform.h"
#import "Kratos_userInfo.h"
#import "Kratos_Options.h"
//#import <kk_framework/Kratos_Options.h>

@interface ViewController () <Kratos_PlatformDelegate>

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
//
    Kratos_Options *option = [[Kratos_Options alloc]init];
    option.Kratos_GameID = @"28";
    option.Kratos_pkg = @"djm";
    option.Kratos_CID = @"1117";
    option.Kratos_bundleName = @"kkBundle";
    option.Kratos_appleIPAFundsURL = @"http://djmios.jswl.iossh.rydth5.com/djmios/payment";
    Kratos_Platform *platform =  [Kratos_Platform sharedPlatform];
    [platform Kratos_callbackAndReturnValue_Kratos:@"https://www.jianshu.com/p/b97bcba0cd1b" Kratos_key:@"fanrenxianmeng"];
    [platform Kratos_ShowAccountViewController:self Kratos_delegate:self Kratos_options:option];
}

- (IBAction)showLogin:(UIButton *)sender {
    [[Kratos_Platform sharedPlatform]Kratos_showloginView];

    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
}
- (IBAction)payClick:(id)sender {

    
    [[Kratos_Platform sharedPlatform]Kratos_FuWithUID_Kra:@"453330" Kratos_price:@"0.01" Kratos_goods:@"60个元宝" Kratos_sid:@"8007" Kratos_attach:@"role=2621255|device=2" Kratos_appleMeiShu:@"com.sxj.6"];
    
}
- (IBAction)logoutClick:(id)sender {
    
    [[Kratos_Platform sharedPlatform]Kratos_logoutFromGame];
    
}


- (void)kratos_SDKInitSuccessed:(NSString *)info {
    NSLog(@"kratos_SDKInitSuccessed%@",info);

}

- (void)kratos_getUserInfo:(NSDictionary *)userinfo {
    NSLog(@"获取用户信息%@",userinfo);
}

- (void)kratos_logoutFromSDK {
    
}


@end
